import useStore from '@/stores'
const { useTable } = useStore()
export function useDark() {
  // 在这里写排除序号和操作之外的点击事件
  const col = (column: any, func?: any) => {
    // 获取列和行的索引
    const res = useTable.tableHeader.map((item: any) => {
      return item.lable
    })
    if (res.includes(column.label)) {
      func()
      console.log('在这里写排除序号和操作之外的点击事件的逻辑', column.index, column.label)
    }
  }
  const getCellIndex = ({ row, column, rowIndex, columnIndex }: any) => {
    row.index = rowIndex
    column.index = columnIndex
  }
  return {
    col,
    getCellIndex
  }
}
